﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using DTO;
using BUS;

namespace QLKSTesting
{
    public class Testing
    {
        [TestFixture]
        public class MyQLKSTestKH
        {
            [Test]
            public void TestCustumerInformation()
            {
                CKHACHHANG kh = new CKHACHHANG("abc", 1, 21, "HCM", "1231");
                CKHACHHANG kh1 = new CKHACHHANG("abc", 1, 21, "HCM", "1231");
                Assert.AreSame(kh1.ToString(), kh.ToString());
            }
            [Test]
            public void TestInsertCustumer()
            {
                CKHACHHANG kh = new CKHACHHANG("dghakgang", 1, 21, "HCM", "1231");
                Assert.IsTrue(BUS.XuLyKhachHang.ThemKhachHang(kh));
            }
            [Test]
            public void TestUpdateCustumer()
            {
                CKHACHHANG kh = new CKHACHHANG("tuoitre", 1, 21, "HCM", "1231");
                Assert.IsTrue(BUS.XuLyKhachHang.SuaTTKhachHang(kh,45));
            }
            [Test]
            public void TestDeleteCustumer()
            {
                Assert.IsTrue(BUS.XuLyKhachHang.XoaKhachHang(11));
            }
        }
    }
}
